<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/5/11
  Time: 10:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="a.jsp"%>
<html>
<head>
    <title>Title</title>
    <style>
        form{
            display: block;
            margin: auto;
            width: 300px;
        }span{
            color: red;
                 }
    </style>
</head>
<body>
    <%
      if( session.getAttribute("user")!=null){
          response.sendRedirect("main.jsp");
      }
    %>
    <form action="controller.jsp" method="post">
        <table border="4">
            <tr>
                <h1>欢迎来到操作系统</h1>
            </tr>
            <tr>
                <td>账户</td>
                <td><input type="text" id="name" name="name">
                    <span><%=request.getParameter("isload")==null?"":"*账户或者密码错误"%></span></td>
            </tr>
            <tr>
                <td>密码</td>
                <td><input type="text" id="pwd" name="pwd"> </td>
            </tr>
            <tr>
                <td>类型</td>
                <td> <input type="checkbox" name="ck" value="vip">vip
                    <input type="checkbox" name="ck" value="boss">boss
                    <input type="checkbox" name="ck" value="bp">bp</td>
            </tr>
            <tr>
                <td><input type="submit" value="登录" id="sb"></td>
                <td><input type="reset" value="重置"> </td>
            </tr>
        </table>
    </form>
    <span><%=request.getParameter("feifa")==null?"":"*非法入侵"%></span>
    <script src="../js/jquery.js"></script>
<script>
$("tr:odd").css("background-color","green");
</script>
</body>
</html>
